package route

import (
	"github.com/gin-gonic/gin"
	"router/core"
)

func InitPublishRoute(r *gin.Engine) {
	publishRoute := r.Group("/publish")
	publishRoute.GET("/", core.ViewPublish)
	publishRoute.POST("/add", core.AddPublish)
	publishRoute.GET("/edit", core.EditPublish)
	publishRoute.GET("/delete", core.DeletePublish)

	// publishRoute := r.Group("/publish")

	// publishRoute.GET("/", func(c *gin.Context) {
	// 	c.JSON(200, gin.H{
	// 		"message": "查看出版社",
	// 	})
	// })

	// publishRoute.POST("/add", func(c *gin.Context) {
	// 	c.JSON(200, gin.H{
	// 		"message": "添加出版",
	// 	})
	// })

	// publishRoute.GET("/edit", func(c *gin.Context) {
	// 	c.JSON(200, gin.H{
	// 		"message": "编辑出版",
	// 	})
	// })

	// publishRoute.GET("/delete", func(c *gin.Context) {
	// 	// 删除逻辑
	// 	c.JSON(200, gin.H{
	// 		"message": "删除出版",
	// 	})
	// })
}
